﻿@page "/Pies/Doughnut"
@using LiveChartsCore
@using LiveChartsCore.SkiaSharpView.Blazor
@using LiveChartsCore.SkiaSharpView.Extensions

<PieChart
	Series="Series">
</PieChart>

@code {
    private ISeries[] Series { get; set; }

    protected override void OnInitialized()
    {
        Series = new[] { 2, 4, 1, 4, 3 }
            .AsPieSeries((value, series) =>
            {
                series.MaxRadialColumnWidth = 60;
            });
    }
}
